
import { isFunction } from "./isFunction"

export function isFunctionComponent (vdom) {
  const type = vdom.type
  return (type && isFunction(vdom) && !(type.prototype && type.prototype.render))
}